import request from '@/utils/request'

// 查询动作调度预排列表
export function listWalkthroughs(query) {
  return request({
    url: '/zndd/walkthroughs/list',
    method: 'get',
    params: query
  })
}

// 查询动作调度预排详细
export function getWalkthroughs(id) {
  return request({
    url: '/zndd/walkthroughs/' + id,
    method: 'get'
  })
}

// 新增动作调度预排
export function addWalkthroughs(data) {
  return request({
    url: '/zndd/walkthroughs',
    method: 'post',
    data: data
  })
}

// 修改动作调度预排
export function updateWalkthroughs(data) {
  return request({
    url: '/zndd/walkthroughs',
    method: 'put',
    data: data
  })
}

// 删除动作调度预排
export function delWalkthroughs(id) {
  return request({
    url: '/zndd/walkthroughs/' + id,
    method: 'delete'
  })
}
